#ifndef MAIN_DIALOG_H
#define MAIN_DIALOG_H

#include "ui_SerialPort.h"
#include <QtGui/QDialog>
#include <QtCore>
#include <qextserialport.h>
#include "SerialPortThread.h"

class SerialPortDialog : public QDialog
{
    Q_OBJECT
public:
        SerialPortDialog(QWidget *parent=0, Qt::WindowFlags f=1);
        ~SerialPortDialog();
private:
        Ui::mainDialog ui;

        QextSerialPort *port;
        QString portInfo;
        char isReceive;
        char *rxData;

private slots:
        void on_btnExit_clicked();
        void on_btnSwitch_clicked();
        void on_btnClear_clicked();
        void on_btnReceive_clicked();
        void on_btnSend_clicked();
        void updateReceiveWindow();    
};

#endif //MAIN_DIALOG_H




